#include "stdafx.h"
#include "SOIL.h"


CSOIL * CSOIL::instance = 0;
unsigned char* 	CSOIL::SOIL_load_image
	(
		const char *filename,
		int *width, int *height, int *channels,
		int force_channels
	)
{
	unsigned char *result = stbi_load( filename,
			width, height, channels, force_channels );
	if( result == NULL )
	{
		result_string_pointer = stbi_failure_reason();
	} else
	{
		result_string_pointer = "Image loaded";
	}
	return result;
}

void CSOIL::SOIL_free_image_data (unsigned char *img_data)
{
	delete [] img_data;
}


